{include="header"}
{include="navigator"}

<div id = "container">
	{if="$page==6"}
	<h1 class = "header">เพิ่มรายชื่อผู้บริหารชุดปัจจุบัน</h1>
	{/if}
	{if="$page==7"}
	<h1 class = "header">เพิ่มรายชื่อคณะกรรมการประกันคุณภาพ</h1>
	{/if}

	<form action = '{$action}' method = 'post' enctype='multipart/form-data' id = "staff-form">
		<input type = "hidden" name = "id" value = "{$id}">
		<input type = "hidden" name = "page" value = "{$page}">
		<ul class = 'form'>
			<li class = 'node'>
				<label for='name' class = 'label'>ชื่อ- นามสกุล : </label>
				<input type = 'text' id = 'name' class = 'input validate[required] text-input w300' name = 'name' value = "{$data['name']}">
				<span class='require'>*</span>
			</li>
			<li class = 'node'>
				<label for='position' class = 'label'>ตำแหน่ง : </label>
				<input type = 'text' id = 'position' class = 'input validate[required] text-input w300' name = 'position' value = "{$data['position']}">
				<span class='require'>*</span>
			</li>
			<li class = 'node'>
				<label for='picture' class = 'label'>รูป : </label>
				<input type = "file" name = "picture" id = "picture">
				<span class = 'desc'>150 x 200 pixel (*.jpg, *.png)</span>
				<br>
				<br>
				{if="$data['picture'] != ''"}
					<img src = "{$data['picture']}">
				{/if}
			</li>
			<li>
				<input type = 'submit' value = ' ตกลง ' class = 'submit'>
				<input type = 'button' value = ' ยกเลิก ' class = 'submit' onclick = "location.href='sar.php?id={$page}'">
			</li>
		</ul>
	</form>
</div>

{include="footer"}